include ../Makefile.inc

	#We use the common implicit rule is for the construction of .o (object) files out of .c (source files).
all:	improve_div

improve_div:	improve_div_main.o  
	cd ../common ; make
	gcc $(CFLAGS) -o improve_div improve_div_main.o ../common/modularity_mat.o ../common/sparse_matrix.o ../common/improve_div.o  ../common/spectral_div.o -lm

mtrace: improve_div_main.o
	@echo "Compiling memory-traced improve_div"
	cd ../common ; make mtrace
	gcc $(MTRACEFLAGS) $(CFLAGS)  -o improve_div improve_div_main.o ../common/modularity_mat.o ../common/sparse_matrix.o ../common/improve_div.o  ../common/spectral_div.o -lm
	
clean:
	rm *.o ../common/*.o improve_div
